package yc.gg.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yc.gg.domain.dto.AnimalsDTO;
import yc.gg.domain.po.Animals;

import java.util.List;

/**
 * \* User: Fuyue
 * \* Date: 2025/6/4
 * \* Description:
 * \
 */
@Mapper
public interface AnimalsMapper {
    void addAnimals(Animals animals);
    void addAnimalsAndUser(@Param("animalsId") String animalsId, @Param("userId")String userId);

    List<AnimalsDTO> pageSelect(@Param("offset") int offset, @Param("pageSize") int pageSize);

    Animals getThis(String id);
}